package cn.ldh.feignClient;

import cn.ldh.domain.Product;
import cn.ldh.utils.JsonResult;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;


public class StoreFeignClientFallbackFactory {
    public static JsonResult storeException(@RequestBody Product product, Throwable e){
        return new JsonResult(false,"熔断了");
    }
}
